<div id="divPopUpProduct">
    <fieldset>
        <legend>Search</legend>
        <span class="caption">You can type a part of words</span>
        <?php echo $ajax->form('Product', 'post', array('update' => 'divPopUpProductPaginate', 'indicator' => 'indicator', 'url' => array('action' => 'popup_paginate'))); ?>
        <table>
            <tbody>
                <tr>
                    <td width="80px"><?php echo $form->label('Product.part_no', 'Part no.'); ?></td>
                    <td><?php echo $form->text('Product.part_no'); ?></td>
                    <td width="100px" class="top"><?php echo $form->label('CustProductSite.customer_id', 'Customer'); ?></td>
                    <td><?php echo $form->select('CustProductSite.customer_id', $customers, $customer_id); ?></td>
                </tr>
                <tr>
                    <td><?php echo $form->label('Product.category_id', 'Category'); ?></td>
                    <td><?php echo $form->select('Product.category_id', $categories, null); ?></td>
                    <td class="top"><?php echo $form->label('CustProductSite.site_id', 'Site'); ?></td>
                    <td>
                        <?php echo $form->select('CustProductSite.site_id', $sites, $site_id); ?>&nbsp;
                        <?php echo $form->submit('icon/search.png', array('id' => 'submit', 'style' => 'display: inline;')); ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo $form->label('Product.brand_id', 'Brand'); ?></td>
                    <td><?php echo $form->select('Product.brand_id', $brands, null); ?></td>
                </tr>
                <tr>
                    <td><?php echo $form->label('Product.model'); ?></td>
                    <td><?php echo $form->text('Product.model', array('size' => 20)); ?></td>
                </tr>
                <tr>
                    <td><?php echo $form->label('Product.title'); ?></td>
                    <td>
                        <?php echo $form->text('Product.title', array('size' => 50)); ?>
                    </td>
                </tr>
            </tbody>
        </table>
        <?php echo $form->end(); ?>
                    </fieldset>
                    <div id="divPopUpProductPaginate">
        <?php
                        echo $this->requestAction('supplier_consignment_lists/popup_paginate' .
                                (isset($customer_id) ? '/customer_id:' . $customer_id : '') .
                                (isset($site_id) ? '/site_id:' . $site_id : ''),
                                array('return'));
        ?>
    </div>
</div>
<script type="text/javascript">
    $j(function() {
        $j("#CustProductSiteCustomerId").bind('change', function() {
            requestOptions("sites", "CustProductSiteCustomerId", "CustProductSiteSiteId");
        });
    })
</script>
